<script src="#CHEMIN{formulaires/ecatalogue_groupes/ecatalogue_groupes_js.php}"></script>

<div class='formulaire_spip'>
    [<p class="reponse_formulaire reponse_formulaire_ok">(#ENV**{message_ok})</p>]
	[<p class="reponse_formulaire reponse_formulaire_erreur">(#ENV*{message_erreur})</p>]
    
    <form method='post' action='#ENV{action}' id="ecatalogue_groupes_form" class="list_form"><div>
			#ACTION_FORMULAIRE{#ENV{action}}			
			    
            <center><h2><:ecatalogue:groupes_list:></h2></center>
            <table align="center" style="width: 30%;">
            <tbody class="elements_container">        
        <BOUCLE_groupes(ECATALOGUE_GROUPES){par num titre}{pagination 50}>
            <tr>
                <td>
                    #ID_GROUPE
                </td>            
	            <td>                    
                    <input type="text" name="elements_update[#ID_GROUPE][titre]" value="#TITRE**" style="width: 270px;" />
                </td>
                <td>    
                    <select name="elements_update[#ID_GROUPE][type]" style="width: 130px;" > 
                        <option value="checkbox" [(#TYPE|=={checkbox}|?{selected})] ><:ecatalogue:groupe_type_checkbox:></option>
                        <option value="select" [(#TYPE|=={select}|?{selected})] ><:ecatalogue:groupe_type_select:></option>
                        <option value="radio" [(#TYPE|=={radio}|?{selected})] ><:ecatalogue:groupe_type_radio:></option>
                    </select>
                </td>
                <td>
                    <a href="javascript:;" data-element-id="#ID_GROUPE" class="delete_link"><:ecatalogue:delete:></a>  
                </td>            
		    </tr>
        </BOUCLE_groupes>
        <tr><td colspan="3"><center>#PAGINATION</center></td></tr>
            </B_groupes>
                <tr><td colspan="2"><center><strong class="caption"><:ecatalogue:no_groupes:></strong></center></td></tr>
                <//B_groupes>
            </tbody>
            </table>
			<div style="font-weight: bold; width: 100%; text-align: center;">
                <:ecatalogue:form_save_to_change:>
            </div>
			<p class='boutons'>
                <input type='button'  onclick="javascript:window.location.reload();" name='cancel_button' value='<:ecatalogue:cancel:>' />
                <input type='button' class="add_field_button" name='add_field_button' value='<:ecatalogue:add_groupe:>' />
				<input type='submit' name='save_submit' value='<:bouton_enregistrer:>' />
			</p>			
		</div>
    </form>
</div>